package org.softmed.rest.editor;

import javax.swing.JFrame;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import org.softmed.rest.admin.file.FileManagerProxy;
import org.softmed.rest.admin.httpMethods.HTTPMethodEditor;
import org.softmed.rest.admin.mediaType.MediaTypeChooser;
import org.softmed.rest.admin.mediaType.MediaTypeEditor;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		try {
			// UIManager.setLookAndFeel(
			// "com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");

			// "com.sun.java.swing.plaf.windows.WindowsLookAndFeel");

			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

			// UIManager.setLookAndFeel(
			// UIManager.getCrossPlatformLookAndFeelClassName());

		} catch (UnsupportedLookAndFeelException e) {
			e.printStackTrace();
			return;
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
			return;
		} catch (InstantiationException e) {
			e.printStackTrace();
			return;
		} catch (IllegalAccessException e) {
			e.printStackTrace();
			return;
		}

		FileManagerProxy fileManagerProxy = new FileManagerProxy();

		RESTEditor editor = new RESTEditor();
		editor.setFileManager(fileManagerProxy);

	}

}
